{include file="public/header" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
{load href="__PLUGINS__laydate/laydate.js"}
{load href="__JS__jquery.provincesCity.js"}
{load href="__JS__provincesData.js"}
{load href="__JS__areaData_v2.js"}
<!-- 加载编辑器的容器 -->
{:ueditor()}

<style type="text/css">
    #province{
        display: flex;
        align-items: center;
    }
    #province > select{
        margin-right: 2em;
        height: 34px;
        background-color: #FFF;
        background-image: none;
        border: 1px solid #e5e6e7;
        border-radius: 1px;
        color: inherit;
        display: block;
        padding: 6px 12px;
        -webkit-transition: border-color .15s ease-in-out 0s,box-shadow .15s ease-in-out 0s;
        transition: border-color .15s ease-in-out 0s,box-shadow .15s ease-in-out 0s;
        width: 100%;
        font-size: 14px;
    }
    #province > select:last-child{
        margin-right: 0;
    }
</style>

 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">文章内容</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="ibox-content">

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">排序：</label>
                                    <div class="col-sm-9">
                                        <input name="des" type="text" class="form-control" placeholder="值越大越靠前" value="{present name="name"}{$name.des}{/present}">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">标题：</label>
                                    <div class="col-sm-9">
                                        <input name="title" type="text" class="form-control" value="{present name="name"}{$name.title}{/present}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">简介：</label>
                                    <div class="col-sm-9">
                                        <textarea name="desc" type="text" class="form-control">{present name="name"}{$name.desc}{/present}</textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">跳转链接：</label>
                                    <div class="col-sm-9">
                                        <input name="web" type="text" class="form-control" value="{present name="name"}{$name.web}{/present}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">封面图：</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                            <input name="img" type="text"  id="image" class="form-control" value="{present name="name"}{$name.img}{/present}">
                                            <span class="input-group-btn">
                                                <button type="button" class="btn btn-primary" id="tubiao">上传图片</button>
                                            </span>
                                        </div>
                                    </div>
                                </div>
<!-- 引用控制层插件样式 -->
{load href="__PLUGINS__zyUpload/zyUpload.css"}
<!-- 引用核心层插件 -->
{load href="__PLUGINS__zyUpload/zyUpload.js"}
<!-- 引用初始化JS -->
<script type="text/javascript">var urlupload='{:url('index/uploads')}'; var root = '__ROOT__'</script>
{load href="__PLUGINS__zyUpload/script.js"}
 
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">图文详情：</label>
                                    <div class="col-sm-9">
                                        <script type="text/plain" id="content" name="content" style="width:100%;height:240px;">
                                            {present name="name"}{:out_content($name.content)}{/present}
                                        </script>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">

function msg(){
    layer.msg("上传成功")
}



function delImg(id){
    $('#id'+id).remove();
}


$('.form-group').on('click','.btn-danger',function(e){
    $(this).parent().remove();
})


$("#video").click(function(){
    //  layer.msg('演示站无权操作！')
    // return;
    layer.open({
      type: 2,
      title: '上传视频',
      shadeClose: true,
      shade: 0.2,
      area: ['70%', '60%'],
      skin:'shangchuantup',
      content: '{:url("index/videoUploads")}',
      shift:-1,
      scrollbar: false,
      moveType: 1,
      moveOut: true
    }); 
})
</script>
{include file="public/bottom" /}

